package com.kuang.scanner;


import java.util.Scanner;

public class Demo06 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入成绩：");
        int w=scanner.nextInt();
        if(w==100){
            System.out.println("满分");
        }else if(w>=80&&w<100){
            System.out.println("A");
        }else if(w>=60&&w<80){
            System.out.println("B");
        } else if(w>0&&w<60){
            System.out.println("不及格");
        }else{
            System.out.println("成绩不合法");
        }
        scanner.close();
    }

}
